package com.example.sofa_module.detail;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.viewbinding.ViewBinding;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.bw.common.entity.LiveDataEntity;
import com.bw.common.mvvm.view.BaseActivity;
import com.bw.sofa_module.databinding.ActivityDetailBinding;

@Route(path = "/sofa/videodetail")
public class VideoDetailActivity extends BaseActivity<ActivityDetailBinding,VideoDetailViewModel> {

    @Override
    public View bindLayout() {
        return v.getRoot();
    }

    @Override
    public ViewBinding initBinding() {
        return ActivityDetailBinding.inflate(inflater);
    }

    @Override
    public void initView() {
        v.detailRecycler.setLayoutManager(new LinearLayoutManager(this));
        v.detailVideoview.setPlayUrl("http://txmov2.a.yximgs.com/upic/2020/08/21/20/BMjAyMDA4MjEyMDQ4MTRfMTY4Mjc3ODU5XzM0NzU3Nzc0NDU4XzFfMw==_b_B5a7befc8f302d4b2094b77ddaeb813d5.mp4?tag=1-1599265808-vdg-1-pk3asdcwkh-c228fed0db615313&tt=b&bp=10000");
        v.detailVideoview.start();
    }

    @Override
    public void initData() {

    }

    @Override
    protected void handleMessage(LiveDataEntity entity) {

    }

}
